package org.hxzon.workeasy.util;

import org.hxzon.project.HibernateDao;

public class DaoEx extends HibernateDao {
    protected String getDefaultOrderByString(Class<?> clazz) {
//        if (clazz == EasyTag.class || clazz == EasyPost.class) {
//            return " order by p.code asc";
//        } else if (clazz == EasyFile.class) {
//            return " order by p.code asc,p.version desc";
//        } else if (clazz == Contract.class) {
//            return " order by p.code desc";
//        } else if (clazz == ContractInvoice.class || clazz == ContractPayment.class || clazz == HLog.class) {
//            return " order by p.createTime desc";
//        } else if (clazz == EasyUzer.class) {
//            return " order by p.adminGrade asc,p.username";
//        } else if (clazz == EMailAddress.class) {
//            return " order by p.realname desc";
//        }
        return "";
    }
}
